class_name Constant

## 全局游戏常量

#region 常量
const INT_MAX = 2**31-1 # 2,147,483,647
const INT_MIN = -2**31  # -2,147,483,648
const ATTEMPT_AMOUNT:int = 100
# 四叉树最大深度
const QUAD_TREE_MAX_DEPTH:int = 10
# 四叉树默认 出口边界/入口边界
const QUAD_TREE_DEFAULT_OUT_DIV_IN:int = 2
#endregion

#region 层级
const Z_INDEX_BACKGROUND = -100
const Z_INDEX_MIDGROUND = -70
const Z_INDEX_MINIMAP = -40
const Z_INDEX_DECORATION = -30
const Z_INDEX_OBSTACLE = -20
const Z_INDEX_INTERACTIVE_ITEM = -10
const Z_INDEX_ENTITY = 0
const Z_INDEX_WEAPON = 10
const Z_INDEX_WORLD_UI = 15
const Z_INDEX_FOREGROUND = 20
const Z_INDEX_EFFECT = 30
const Z_INDEX_INDICATOR = 50
const Z_INDEX_DEBUG = 80
const Z_INDEX_UI = 100
#endregion
#region 方向
# 上右下左
const FOUR_DIR_OFFEST:Array[Vector2i] = [Vector2i(0,-1),Vector2i(1,0),Vector2i(0,1),Vector2i(-1,0)]
# 上、右上、右、右下、下、左下、左、左上
const Eight_DIR_OFFEST:Array[Vector2i] = [Vector2i(0,-1),Vector2i(1,-1),Vector2i(1,0),Vector2i(1,1),Vector2i(0,1),Vector2i(-1,1),Vector2i(-1,0),Vector2i(-1,-1)]
# 对角线
# 右上、右下、左下、左上
const DIAGONAL_DIR_OFFEST:Array[Vector2i] = [Vector2i(1,-1),Vector2i(1,1),Vector2i(-1,1),Vector2i(-1,-1)]
#endregion
#region BaseRoom
const REPLACE_TILE_LAYER_NAME = "Special_ReplaceTile"
#endregion
#region 飘字颜色
const DAMAGE_NORMAL_COLOR:Color = Color.ORANGE
const DAMAGE_CRIT_COLOR:Color = Color.RED
const RECOVER_NORMAL_COLOR:Color = Color.GREEN
#endregion
#region LoadingView
const LOADING_VIEW_DESC = "少女祈祷中{0}"
#endregion
